package cn.huaqingcheng.tianshu.security.token;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.authority.SimpleGrantedAuthority;

import java.io.Serial;
import java.util.List;

/**
 * JwtTokenAuthentication
 */
@SuppressWarnings("NonSerializableFieldInSerializableClass")
@Data
@NoArgsConstructor
public class JwtTokenAuthentication implements Authentication {

    @Serial
    private static final long serialVersionUID = 1L;

    private String name;

    private Object credentials;

    private Object details;

    private Object principal;

    private boolean authenticated;

    private List<SimpleGrantedAuthority> authorities;

}
